package com.study.d019fxml.userstructargs;

import javafx.util.Builder;

/**
*@description
*@author xtayhame
*date 2020年3月17日
*version
*since v1.0
*/
public class PersonBuilder implements Builder<Person>{
	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public Person build() {
		return new Person(name,age);
	}

}
